<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<title>Recepcion de envios inter sucursal</title>
</head>
<body>
	<div class="container">
		<h2>Recepcion de envios entre sucursales</h2>
		<hr>
		<div class="panel panel-default">
			<!-- Default panel contents -->
			<div class="panel-heading">Envios Sucursal: Sucursal 1</div>
			<div class="panel-body">
				<p>Se listan los envios que han ingresado a la sucursal: Sucursal 1</p>
			</div>

			<!-- Table -->
			<table class="table">
				<thead>
					<tr>
						<th>#</th>
						<th>Envio</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td>1</td>
						<td>Envio 1</td>
					</tr>
					<tr>
						<td>2</td>
						<td>Envio 2</td>
					</tr>
					<tr>
						<td>3</td>
						<td>Envio 3</td>
					</tr>
				</tbody>
			</table>
		</div>
		<button type="button" class="btn btn-default">Confirmar</button>
	</div>

	<script src="https://code.jquery.com/jquery.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script type="text/javascript">
	$('#dni').on('focusout', function(event) {
		event.preventDefault();
		$.ajax({
			url: '/Validaciones',
			type: 'GET',
			dataType: 'html',
			data: {tipo: $('#tipo').val(), dni: $('#dni').val()},
		})
		.done(function() {
			console.log("success");
		});
	});
	$('#cuit').on('focusout', function(event) {
		event.preventDefault();
		$.ajax({
			url: '/Validaciones',
			type: 'GET',
			dataType: 'html',
			data: {tipo: $('#tipo').val(), dni: $('#cuit').val()},
		})
		.done(function() {
			console.log("success");
		});
	});
	</script>
</body>
</html>